//
//  PlayBarTableViewCell.m
//  CoolFM
//
//  Created by 曹曹 on 16/9/13.
//  Copyright © 2016年 曹曹. All rights reserved.
//

#import "PlayBarTableViewCell.h"
#import "PlayerList.h"
#import "UIImageView+WebCache.h"

@interface PlayBarTableViewCell ()
@property (weak, nonatomic) IBOutlet UIImageView *picView;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UILabel *userLabel;

@end

@implementation PlayBarTableViewCell

- (void)setList:(PlayerList *)list {
    _list = list;
    [_picView sd_setImageWithURL:[NSURL URLWithString:list.channel_image_url] placeholderImage:[UIImage imageNamed:@"placeholderImage"]];
    _titleLabel.text = list.channel_name;
    _userLabel.text = list.program_name;
}

- (void)awakeFromNib {
    [super awakeFromNib];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
